package com.zxh.blog.test;

public class test {
	public static void main(String [] args){
		long usingTime = 1501;
		if (usingTime < 60) {
			System.out.println(usingTime + "分钟");
		} else if (usingTime < 1440 && usingTime >= 60) {
			if((usingTime%60) == 0){
				System.out.println(usingTime / 60 + "小时");
			}else{
				System.out.println(usingTime / 60 + "小时"+ usingTime % 60 +"分钟");
			}
		} else if (usingTime >= 1440) {
			if(usingTime%1440 == 0){
				System.out.println(usingTime / 1440 + "天");
			}else{
				if(usingTime%60 == 0){
					System.out.println(usingTime / 1440 + "天"+(usingTime%1440)/60+"小时");
				}else if(usingTime%1440 < 60){
					System.out.println(usingTime / 1440 + "天"+usingTime%60+"分钟");	
				}else{
					System.out.println(usingTime / 1440 + "天"+(usingTime%1440)/60+"小时"+(usingTime%1440)%60+"分钟");
				}
			}
		}
	}
}
